package com.ruoyi.cbs.violation.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 承包商违章记录对象 cbs_violation_record
 * 
 * @author ruoyi
 * @date 2025-11-15
 */
public class ViolationRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 违章主键 */
    private Long id;

    /** 承包商ID(施工单位) */
    @Excel(name = "承包商ID(施工单位)")
    private Long contractorId;

    /** 承包商名称 */
    @Excel(name = "承包商名称")
    private String contractorName;

    /** 项目id */
    @Excel(name = "项目id")
    private Long projectId;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String projectName;

    /** 违规人员ID */
    @Excel(name = "违规人员ID")
    private String violatorIds;

    /** 违规人员姓名 */
    @Excel(name = "违规人员姓名")
    private String violatorNames;

    /** 违规描述 */
    @Excel(name = "违规描述")
    private String violationDesc;

    /** 违规时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "违规时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date violationTime;

    /** 相关证明文件 */
    @Excel(name = "相关证明文件")
    private String attachment;

    /** 处理结果描述 */
    @Excel(name = "处理结果描述")
    private String processingResult;

    /** 处理状态: 1整改 2停工 */
    @Excel(name = "处理状态: 1整改 2停工")
    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setContractorId(Long contractorId) 
    {
        this.contractorId = contractorId;
    }

    public Long getContractorId() 
    {
        return contractorId;
    }

    public void setContractorName(String contractorName) 
    {
        this.contractorName = contractorName;
    }

    public String getContractorName() 
    {
        return contractorName;
    }

    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }

    public void setProjectName(String projectName) 
    {
        this.projectName = projectName;
    }

    public String getProjectName() 
    {
        return projectName;
    }

    public void setViolatorIds(String violatorIds) 
    {
        this.violatorIds = violatorIds;
    }

    public String getViolatorIds() 
    {
        return violatorIds;
    }

    public void setViolatorNames(String violatorNames) 
    {
        this.violatorNames = violatorNames;
    }

    public String getViolatorNames() 
    {
        return violatorNames;
    }

    public void setViolationDesc(String violationDesc) 
    {
        this.violationDesc = violationDesc;
    }

    public String getViolationDesc() 
    {
        return violationDesc;
    }

    public void setViolationTime(Date violationTime) 
    {
        this.violationTime = violationTime;
    }

    public Date getViolationTime() 
    {
        return violationTime;
    }

    public void setAttachment(String attachment) 
    {
        this.attachment = attachment;
    }

    public String getAttachment() 
    {
        return attachment;
    }

    public void setProcessingResult(String processingResult) 
    {
        this.processingResult = processingResult;
    }

    public String getProcessingResult() 
    {
        return processingResult;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("contractorId", getContractorId())
            .append("contractorName", getContractorName())
            .append("projectId", getProjectId())
            .append("projectName", getProjectName())
            .append("violatorIds", getViolatorIds())
            .append("violatorNames", getViolatorNames())
            .append("violationDesc", getViolationDesc())
            .append("violationTime", getViolationTime())
            .append("attachment", getAttachment())
            .append("processingResult", getProcessingResult())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
